<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 */
?>
<!DOCTYPE html>
<html lang="<?php echo $language; ?>">
<head>
	<meta charset="utf-8" />
	<base href="<?php echo BASEHREF; ?>/">
	<meta name="description" content="<?php echo $meta['description']; ?>" />
	<meta name="author" content="<?php echo $meta['author']; ?>" />
	<meta name="keywords" content="<?php echo $meta['keywords']; ?>" />
	<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<?php
foreach ($styles as $n=>$style):
?>
	<link rel="stylesheet" href="css/<?php echo APPEARANCE.'/'.$style.'.css?v='.STYLE_VERSION; ?>" />
<?php
endforeach;
?>
	<link rel="shortcut icon" href="css/<?php echo APPEARANCE; ?>/logo.png" type="image/png" />
	<link rel="apple-touch-icon" href="css/<?php echo APPEARANCE; ?>/logo.png" />
	<title><?php echo $pageTitle; ?></title>
<!-- Analytics just before head close tag -->
{head_analytics}
<!-- /Analytics just before head close tag -->
</head>
<body>
<!-- Main -->
<div id="wrap">
<div id="main">
<?php
/**
 * slip in partials for messages and errors
 */
$this->view('shared/message');
$this->view('shared/error');
?>